using System.Collections.Generic;
using DAL;
using Entity;

namespace Business
{
	public class OutBoxBusiness
	{
		#region code CMS
        //public static List<OutBox> GetOutBoxList()
        //{
        //    var result = FreshCmsDataAccessProvider.OutBox.GetOutBoxList();
        //    return result;
        //}

        //public static List<OutBox> GetOutBoxListByPaging(int pageIndex, int pageSize, ref int totalRecord)
        //{
        //    var result = FreshCmsDataAccessProvider.OutBox.GetOutBoxListByPaging(pageIndex, pageSize, ref totalRecord);
        //    return result;
        //}

        //public static OutBox GetOutBoxById(int boxId)
        //{
        //    var result = FreshCmsDataAccessProvider.OutBox.GetOutBoxById(boxId);
        //    return result;
        //}

        public static int InsertOutBox(OutBox OutBox)
        {
            var result = FreshCmsDataAccessProvider.OutBox.InsertOutBox(OutBox);
            return result;
        }

        //public static int UpdateOutBox(OutBox OutBox)
        //{
        //    var result = FreshCmsDataAccessProvider.OutBox.UpdateOutBox(OutBox);
        //    return result;
        //}

        public static int DeleteOutBox(int boxId)
        {
            var result = FreshCmsDataAccessProvider.OutBox.DeleteOutBox(boxId);
            return result;
        }

        public static int OrderOutBox(int boxId, int boxcate, int action)
        {
            return FreshCmsDataAccessProvider.OutBox.OrderOutBox(boxId, boxcate, action);
        }

        public static int UpdateAvatar(int boxId, string avatar)
        {
            return FreshCmsDataAccessProvider.OutBox.UpdateAvatar(boxId, avatar);
        }

		#endregion
	}
}